package com.ruoyi.union.service.impl;

import com.ruoyi.union.domain.Article;
import com.ruoyi.union.mapper.ArticleMapper;
import com.ruoyi.union.service.IArticleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ArticleServiceImpl implements IArticleService {
    @Resource
    private ArticleMapper articleMapper;

    @Override
    public Article selectArticleById(Long id) { return articleMapper.selectArticleById(id); }

    @Override
    public List<Article> selectArticleList(Article query) { return articleMapper.selectArticleList(query); }

    @Override
    public int insertArticle(Article article) { return articleMapper.insertArticle(article); }

    @Override
    public int updateArticle(Article article) { return articleMapper.updateArticle(article); }

    @Override
    public int deleteArticleByIds(Long[] ids) { return articleMapper.deleteArticleByIds(ids); }

    @Override
    public int deleteArticleById(Long id) { return articleMapper.deleteArticleById(id); }
}


